from random import randrange
def generate(n):
    for k in range(0,n):
        f = open("s1/PSD"+str(k)+"_A.csv", 'w')
        t = [0,0,0,0,0]
        s = 0
        for x in range(0,4):
            t[x] = 20 + randrange(-5,6)
            s += t[x]
        t[4] = 100 - s
        f.write("1111111a," + str(t[0]) + "\n")
        f.write("2222222b," + str(t[1]) + "\n")
        f.write("3333333c," + str(t[2]) + "\n")
        f.write("4444444d," + str(t[3]) + "\n")
        f.write("5555555e," + str(t[4]))
        f.close()
